tools/libxl: store remus_ops in checkpoint device state
authorWen Congyang <wency@cn.fujitsu.com>
Wed, 15 Jul 2015 07:45:49 +0000 (15:45 +0800)
committerWei Liu <wei.liu2@citrix.com>
Fri, 26 Feb 2016 15:14:47 +0000 (15:14 +0000)
commitb203070184e7ffa5a30e5e88b196f5aa63abfd52
treeb0b82a370b055a7c1a701d7eabb653c51e9cfe3a
parent5ac1d61412bb815ab49e0c48bbbe514c00d1a33f
tools/libxl: store remus_ops in checkpoint device state

Checkpoint device is an abstract layer to do checkpoint.
COLO can also use it to do checkpoint. But there are
still some codes in checkpoint device which touch remus.

This patch and:
 tools/libxl: move remus state into a seperate structure
 tools/libxl: seperate device init/cleanup from checkpoint device layer
will seperate remus from checkpoint device layer.

We use remus ops directly in checkpoint device. Store it
in checkpoint device state so that we do not aware of
remus_ops in the checkpoint device layer.

It is pure refactoring and no functional changes.

Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Signed-off-by: Yang Hongyang <hongyang.yang@easystack.cn>
Acked-by:Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_checkpoint_device.c
tools/libxl/libxl_internal.h
tools/libxl/libxl_remus.c